package cn.example.vip.mall.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("seckill_goods")
public class SeckillGoods implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;
	@Column(name = "spu_id")
	private String spuId;
	@Column(name = "sku_id")
	private String skuId;
	private String name;
	private String images;
	private Integer price;
	@Column(name = "seckill_price")
	private Double seckillPrice;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "start_time")
	private Date startTime;
	@Column(name = "end_time")
	private Date endTime;
	private Integer num;
	@Column(name = "store_count")
	private Integer storeCount;
	private String content;
	@Column(name = "activity_id")
	private String activityId;	// 活动id
}
